Add statistics to api