Added implementation of methods to handle statistics