anchor.diff:          %% Initially, the sets of assigned and stored chunks are equal
           chunks_assigned=ChunkSets,
           chunks_stored=ChunkSets,
  -        prio_begun=PriorityBegun,
  -        prio_unassigned=PriorityUnass,
  +        piece_priority=PiecePriority,
           pending=Pending},
       {ok, InitState}.
   
  
positive.code:     end || {N, IsValid} <- lists:sort(States)],
      ChunkSets = array:from_orddict(ChunkList),
  
      PiecesBegun = etorrent_pieceset:from_list([], NumPieces),
      PriorityBegun = init_priority(TorrentID, begun, PiecesBegun),
      PriorityUnass = init_priority(TorrentID, unassigned, PiecesInvalid),
  
      InitState = #state{
          torrent_id=TorrentID,
  
negative.code:             end;
          %% One or more that we are already downloading
          begun ->
              etorrent_pieceset:min(Optimal);
          %% None that we are not already downloading
          %% but one ore more that we would want to download
          unassigned ->
              #pieceprio{pieces=UnassignedPriolist} = PiecePriority,
              etorrent_pieceset:first(UnassignedPriolist, SubOptimal)
      end,
  
  