Moved some methods from the nodes to the companion