Update TreePrinter.