The thread is a bit confusing, but the post I linked you to has working code.