BaseWorker refactoring.