Tweaked the way in which the schedule is reset.