Node protocol to build tree structures.