Converted internal 'del' collection to a Set to eliminate duplicates.