Added timeout to _download_file()