In p2, it took some tries to find a correct way to rearrange incorrect pagesets. The code ended up just rearranging first found incorrect order and readding the updated pageset to queue.