Adding an attr in the tree generator