Mostly finished state machine