Enhanced to execute tasks periodically.
Fixed to schedule tasks after removing a task.