Support for localstats.