General purpose library functions (H5)