Finished implementation of the --copy-from switch