Unfancy state machines