Changes copy file to stream copy