Now saves all output to an h5 file.