Fixed TaskScheduler definitions