Changed the way the day length modification is implemented.