Thanks for the tips, I originally had similar code under the routine "loop" which also failed to work, but I'll try again and let you know.

Cheers