Updated to use the new version of change/setNumberOfWorkers.