anchor.diff:  %%--------------------------------------------------------------------
   send_have_piece(Pid, PieceNumber) ->
       gen_server:cast(Pid, {send_have_piece, PieceNumber}).
  +
  +%%--------------------------------------------------------------------
  +%% Function: endgame_got_chunk(Pid, Index, Offset) -> ok
  +%% Description: We got the chunk {Index, Offset}, handle it.
  +%%--------------------------------------------------------------------
  +endgame_got_chunk(Pid, Index, Offset) ->
  +    gen_server:cast(Pid, {endgame_got_chunk, Index, Offset}).
   
   %%--------------------------------------------------------------------
   %% Function: complete_handshake(Pid, ReservedBytes, Socket, PeerId)
  
positive.code: 
  
  %%--------------------------------------------------------------------
  %% Func: handle_got_chunk(Index, Offset, Data, Len, S) -> {ok, State}
  %% Description: We just got some chunk data. Store it in the mnesia DB
  %%   TODO: This is one of the functions which is a candidate for optimization!
  
negative.code: %% API
  -export([start_link/5, connect/3, choke/1, unchoke/1, interested/1,
  	 send_have_piece/2, complete_handshake/4,
  	 stop/1, endgame_got_chunk/3]).
  
  %% gen_server callbacks
  -export([init/1, handle_call/3, handle_cast/2, handle_info/2,
  