Made TaskScheduler a Singleton.
Implement TaskScheduler.