Removing duplicates in core