DownloadFile function added