Fleshing out TreeDensity.