Updated state machine.
Changed simulation period to Spring.