Segregating the stats functions