Added usage of sendConsoleErrors variable