Added worker state machine.