Adding error categorization automatically