Avoid using copyFile