Added delete and remove duplicates