Added a day-time function.