Deleting old copies and renaming new ones