Separate functionality from rhdf5 package