Nicer UI, remove unnecessary check in removeDuplicate