Implement "UpdateWorkerState" and use it