Adding error stats