ditto from StatsAgent.