Added silly finite state machine.