Refactored state to initial_state in the FiniteStateMachine implementation.