anchor.diff:  %% @end
   -spec query_state(integer()) -> unknown | {value, [{term(), term()}]}.
   query_state(Id) ->
  -    gen_server:call(?SERVER, {query_state, Id}).
  +    gen_server:call(srv_name(), {query_state, Id}).
   
   -spec srv_name() -> atom().
   srv_name() ->
  
positive.code: 		         _  ->
                      dets:insert(Table,
  			            {Filename, [
                              {state, {bitfield, etorrent_piece_mgr:bitfield(Id)}},
  				            {uploaded, Uploaded},
  				            {downloaded, Downloaded}]})
  	        end
  
negative.code:     %% Run a persistence operation on all torrents
      %% TODO - in the ETS implementation the state of all inactive
      %%        torrents was flushed out on each persitance operation.
      #state{table=Table} = State,
      _ = [begin
          TorrentID = proplists:get_value(id, Props),
          Filename  = proplists:get_value(filename, Props),
          track_torrent(TorrentID, Filename, Table)
      end || Props <- etorrent_table:all_torrents()],
      {reply, ok, State}.
  
  handle_cast(_, State) ->
  