Be sure to only use valid nodes.