Replace xstats to stats