Daylight functions separated.