Added two new helper functions for nodes.