Removing duplicates (from E McNells)