Modified structure to HDF5 function