Added support to get the file download when ready