Initial import of Statistics API to version 2.