Adding support for statscollector.

Testing pending.