Added --presorted flag