Adding support for statscollector.