Added an option to copy from an existing file