Does not break with duplicates