Use scheduler functions properly to activate/deactivate tasks.
Scheduler must keep track of whether a task has been initialized or not.