Added stats for errors