Replaced ERROR with kError and WARNING with kWarning.