Added function GlobalId in the sub tree