Debugging the finite state machine.