Output blocks as hierarchy tree