anchor.diff:  
   %% API
   -export([pick_chunks/4, store_chunk/4, putback_chunks/1,
  -	 endgame_remove_chunk/3, retrieve_chunks/2]).
  +	 endgame_remove_chunk/3]).
   
   %%====================================================================
   %% API
  
positive.code: %%====================================================================
  %% Internal functions
  %%====================================================================
  
  %%--------------------------------------------------------------------
  %% Function: read_delete_chunks(Chunks, Id, PieceNum) -> [{Offset, Chunk}]
  %% Description: Read and delete a number of chunks.
  %%--------------------------------------------------------------------
  read_delete_chunks([], _, _) ->
      [];
  read_delete_chunks([Offset | Rest], Id, PieceNum) ->
      %% Read the chunk
      [C] = mnesia:dirty_read(chunk_data, {Id, PieceNum, Offset}),
      %% And delete it
      ok = mnesia:dirty_delete_object(C),
      [{Offset, C#chunk_data.data} | read_delete_chunks(Rest, Id, PieceNum)].
  
  %%--------------------------------------------------------------------
  %% Function: find_remaining_chunks(Id, PieceSet) -> [Chunk]
  
negative.code: 	  end),
      Res.
  
  endgame_remove_chunk(Pid, Id, {Index, Offset, Len}) ->
      case mnesia:dirty_read(chunk, {Id, Index, {assigned, Pid}}) of
  	[] ->
  