Added step

Added step counter using FSM.