Tweaking the execution of tasks with TaskScheduler