Posted a code sample that I think might help.