Same change, but for schedule loop