ScheduleManger saving code.