Classify, cleanup and make errors