Add the download-on-finish function.
Otherwise the script output needs parsing.