Added basic version of task scheduler.