Have getNodeInfoFromInput and getNodeInfoFromModifier return a class object