Added consoleInput method