anchor.diff:  -define(SERVER, ?MODULE).
   -define(PERSIST_TIME, timer:seconds(300)). % Every 300 secs, may be done configurable.
   -ignore_xref([{start_link, 0}]).
  +
   %%====================================================================
  +
   %% @doc Start up the server
   %% @end
   -spec start_link() -> {ok, pid()} | ignore | {error, term()}.
  
positive.code:     erlang:send_after(?PERSIST_TIME, self(), persist),
      {ok, #state{}}.
  
  handle_call({query_state, Id}, _From, S) ->
      {value, PL} = etorrent_table:get_torrent(Id),
      case ets:lookup(etorrent_fast_resume, proplists:get_value(filename, PL)) of
  
negative.code: handle_info(_Info, State) ->
      {noreply, State}.
  
  %% @private
  terminate(Reason, _State) when Reason =:= normal; Reason =:= shutdown ->
      persist_to_disk(),
      ok;
  terminate(_Reason, _State) ->
      ok.
  
  %% @private
  code_change(_OldVsn, State, _Extra) ->
      {ok, State}.
  
  