Final version of collate.