Renamed cleanUp to removeDuplicates