Removed duplicates from selection and other stuff