For the benefit of others, it might be useful to post the actual solution that worked for you (i.e. code).