Added removeDuplicates