Todo: think about how to add functions to dms2.rxn