I kind of need to be able what the state of each node is, are you saying that this should be moved to, e.g. Types module?