Fixed error in create_delay function. Hours were not being set properly.
Fixed range in operate script to ensure that top end of range can be accessed.