RemoveDuplicates and DumpIndex