Added consoleMessage method