Thanks for your help.

Looks like a couple of interesting hours work