Avoiding duplicates, open after adding