Made inputs optional in HDF5 data layer.