Implemented more score-generating logic on OffsetTree.