Added support for error/warning differentiation.