Improved analysis.offsetTree.