Thank you for your help. It is now working correctly in day mode.