Added task scheduler.