Added near_match feature to collate function.