Changes to downloadFile.