Added a downloader function that saves the data to a file in chunks