Change Type to ScheduleType