Glad your problem is solved.
I know that @gglick provided you with several key parts to the solution, but please choose the one that covers the most of your issues, and check the "Solved" checkbox (click for details) at the bottom of that post.
This will help future users/readers quickly find the solution to issues like yours.
Thanks.