Thanks Max, it is now working perfectly.