Set up to write to HDF5 file.