Update BasicWorker implementation for new input/output interfaces.