Deleting duplicates and fixing file extensions.