Modified the workflow to output directly to a hdf file.