repeatSchedule function

Repeat schedule.