Implemented method getConsoleOutput