Wrapped TreePotential for log-space.