Added functions for getting the position of a node.