Do not add duplicates and remove existing duplicates