Also prevent duplicates.