Add states to state_machine.