Made allow_duplicates more explicit