Completed functionality for setting a main schedule.