First version of copy file