Refactor scheduled tasks.

Signed-off-by: Norv <a.w.norv@gmail.com>
Update scheduled tasks controller.

Signed-off-by: Norv <a.w.norv@gmail.com>