Changed how the schedule definition was being handled