Moved input sequences FSM into a separate header