Use on presorted input files.