Added methods to node in order to keep track of what's inside