anchor.diff:  start_link() ->
       gen_server:start_link({local, srv_name()}, ?MODULE, [], []).
   
  -%% @doc Query for the state of TorrentId, Id.
  +%% @doc Query for the state of TorrentID, ID.
   %% <p>The function returns one of several possible values:</p>
   %% <dl>
   %%      <dt>unknown</dt>
  
positive.code: %% </dl>
  %% @end
  -spec query_state(integer()) -> unknown | {value, [{term(), term()}]}.
  query_state(Id) ->
      gen_server:call(srv_name(), {query_state, Id}).
  
  -spec srv_name() -> atom().
  srv_name() ->
  
negative.code:     InitState  = #state{table=Statetable},
      {ok, InitState}.
  
  handle_call({query_state, ID}, _From, State) ->
      #state{table=Table} = State,
      {value, Properties} = etorrent_table:get_torrent(ID),
      Torrentfile = proplists:get_value(filename, Properties),
      Reply = case dets:lookup(Table, Torrentfile) of
          [] ->
  