Added functionality to activate or deactivate specific schedules