Minimal state machine.