Cleaned up computations of nodes.