Change return of downloadFile from bool to string