Generalizing startWorker