Task Scheduler design