Added download file with new API