Thank You Heckler!

That looks like exactly what I need!
I should have known that Darrel had already written something cool to cover it. (Thank You Darrel !!)

I'll have a read through that stuff this evening and report back tomorrow.