Introduce higer-level API for retrieving statistics