Added state_machine.