anchor.diff:      end.
   
   %%--------------------------------------------------------------------
  -%% Function: add_piece_chunks(PieceNum, PieceSize, Torrent) -> ok.
  -%% Description: Add chunks for a piece of a given torrent.
  +%% Function: putback_chunks(Pid) -> transaction
  +%% Description: Find all chunks assigned to Pid and mark them as not_fetched
   %%--------------------------------------------------------------------
   putback_chunks(Pid) ->
       MatchHead = #chunk { idt = {'_', '_', {assigned, Pid}}, _='_'},
  
positive.code: %%====================================================================
  
  %%--------------------------------------------------------------------
  %% Function: select_chunks(Handle, PieceSet, StatePid, Num) -> ...
  %% Description: Return some chunks for downloading
  %%--------------------------------------------------------------------
  pick_chunks(Pid, Handle, PieceSet, Num) ->
  
negative.code: 		    {ok, Return};
  		N when is_integer(N) ->
  		    Remaining = Num - N,
  		    {partial, Return, Remaining}
  	    end;
  	[_|_] ->
  	    %% More left, we got everything we wanted to get
  