Implemented basic statistics API