Hi Paul, do you happen to have your final solution.  I'm working on something similar and am struggling to get it functioning correctly..