Optimized error finding and printing

Finding and printing errors now happens simultaneously