Building the TaskSchedulers algorithm (won't work due to move semantics)