Added the stats_endpoint back