Worker command refactoring.