Making nodes work inside a hierarchy