Adding check for daylight.