anchor.diff:  	      end,
   	      false,
   	      S#state.peer_process_dict).
  +
  +%%--------------------------------------------------------------------
  +%% Function: reset_round(state()) -> state()
  +%% Description: Reset the amount of data uploaded and downloaded.
  +%%--------------------------------------------------------------------
  +reset_round(S) ->
  +    D = dict:map(fun(_Pid, PI) ->
  +			 PI#peer_info{uploaded = 0,
  +				      downloaded = 0}
  +		 end,
  +		 S#state.peer_process_dict),
  +    S#state{peer_process_dict = D}.
  
positive.code: 
  init([OurPeerId, InfoHash, StatePid, FileSystemPid]) ->
      process_flag(trap_exit, true), % Needed for torrent peers
      {ok, #state{ our_peer_id = OurPeerId,
  		 bad_peers = dict:new(),
  		 info_hash = InfoHash,
  		 state_pid = StatePid,
  		 file_system_pid = FileSystemPid,
  		 peer_process_dict = dict:new() }}.
  
  
negative.code: 		    peer_id = none}).
  
  -define(MAX_PEER_PROCESSES, 40).
  -define(ROUND_TIME, 10000).
  
  %%====================================================================
  %% API
  