Implemented the stats server