Mostly style changes
Renamed errors to stored_errors, so the variable does not collide with the method name