Changed the way the program copies files.