Changed downloadFile