Update ScheduleManager.php