Well, it took me a lot of searching, but I was finally able to solve this one. I'm posting both the problem and the solution so it might help others...