Have getNodeInfoFromInput return a class object