Set allow_duplicates.