Fixed state machine