anchor.diff:  -spec init([qry_fsm_name()]) -> {ok, #state{}}.
   %% @private
   init([Name]) ->
  -    {ok, #state{name = Name}}.
  -
  +    {ok, new_state(Name)}.
   
   -spec handle_call(term(), {pid(), term()}, #state{}) ->
                            {reply, Reply::ok | {error, atom()} | list(), #state{}}.
  
positive.code: %%% Internal functions
  %%%===================================================================
  
  -spec handle_req({atom(), term()}, #state{}) ->
                          {ok | {ok | error, term()},
                           list(), #state{}}.
  
negative.code: handle_req({fetch, QId}, State = #state{qid    = QId,
                                          status = finished,
                                          result = Result}) ->
      % When the results are returned, reset the state completely except
      % for the name.
      {{ok, Result}, [], new_state(State#state.name)};
  
  handle_req(_Request, State) ->
      {ok, ?NO_SIDEEFFECTS, State}.
  