Excellent!
I worked out yesterday how to do it on a more complex example, but it took me a lot longer (and was pretty trial-and-error) without an example to start with. I'm sure this will help many others now.
Thank you very much for your hard work on this project. It's very useful to me and the work is appreciated,
Josh