Added a couple of helper functions to h5 file.