Maximum and depth on tree.