Add latest attribute to indicate the last version in the tree