Removed the removeDuplicates method