anchor.diff:      {ok, State}.
   
   format_status(_Opt, [_Pdict, S]) ->
  +    #state{remote_config=RemoteConf} = S,
  +    RemoteID = etorrent_peerconf:peerid(RemoteConf),
       IPPort = case inet:peername(S#state.socket) of
  -		 {ok, IPP} -> IPP;
  -		 {error, Reason} -> {port_error, Reason}
  -	     end,
  +        {ok, IPP} -> IPP;
  +        {error, Reason} -> {port_error, Reason}
  +    end,
       Term = [
           {torrent_id,     S#state.torrent_id},
  -        {remote_peer_id, S#state.remote_peer_id},
  -	    {info_hash,      S#state.info_hash},
  -	    {socket_info,    IPPort}],
  +        {remote_peer_id, RemoteID},
  +        {info_hash,      S#state.info_hash},
  +        {socket_info,    IPPort}],
       [{data,  [{"State",  Term}]}].
   %%--------------------------------------------------------------------
   
  
positive.code: initialize(Pid, Way) ->
      gen_server:cast(Pid, {initialize, Way}).
  
  %% @doc Request this this peer try queue up pieces.
  %% <p>Used in certain situations where another peer gives back
  %% chunks. This call ensures progress by giving other peers a chance
  %% at grabbing the given-back pieces.</p>
  %% @end
  try_queue_pieces(Pid) ->
      gen_server:cast(Pid, try_queue_pieces).
  
  %% @doc Inject an incoming message to the process.
  %% <p>This is the main "Handle-incoming-messages" call. The intended
  
negative.code:     NewState = State#state{download=NewDownload},
      {noreply, NewState};
  
  handle_info({interest, Change}, State) ->
      #state{send_pid=SendPid, local_state=LocalState} = State,
      Current = etorrent_peerstate:interested(LocalState),
      NewLocalState = if
          Current == Change ->
              LocalState;
          Change == true ->
              ok = etorrent_peer_send:interested(SendPid),
              etorrent_peerstate:interested(true, LocalState);
          Change == false ->
              ok = etorrent_peer_send:not_interested(SendPid),
              etorrent_peerstate:interested(false, LocalState)
      end,
      NewState = State#state{local_state=NewLocalState},
      {noreply, NewState};
              
  handle_info({tcp, _, _}, State) ->
      ?ERR([wrong_controller]),
      {noreply, State};
  