LittleStateMachine is a small finite state machine.