Add stats library