Allow for optional renaming of the copied file