Thanks for all the help on the thread ( especially @blue matt ) they are now working correctly!
Dave