A statesmanlike state machine library.