Do not add duplicates, and delete duplicates