Added support for disabling ugly errors