State Machine finished