anchor.diff:  %%--------------------------------------------------------------------
   init([DiskState, PieceSize]) ->
       {PieceSet, Missing, Size} = convert_diskstate_to_set(DiskState),
  +    AmountLeft = calculate_amount_left(DiskState),
       {ok, #state{piece_set = PieceSet,
   		piece_set_missing = Missing,
   		piece_assignment = dict:new(),
   		num_pieces = Size,
   		piece_size = PieceSize,
   		histogram = histogram:new(),
  -	        left = calculate_amount_left(DiskState)}}.
  +		torrent_size = AmountLeft,
  +	        left = AmountLeft}}.
   
   %%--------------------------------------------------------------------
   %% Function: %% handle_call(Request, From, State) -> {reply, Reply, State} |
  
positive.code: 		piece_assignment = none,
  		piece_size = 0,
  	        num_pieces = 0,
  
  	        histogram = none}).
  
  
negative.code: 	true ->
  	    false
      end.
  
  find_piece_size(PieceNum, S) when PieceNum == S#state.num_pieces ->
      S#state.torrent_size rem S#state.piece_size;
  find_piece_size(PieceNum, S) when PieceNum =< S#state.num_pieces ->
      S#state.piece_size.
  
  