Removing error reporting statements