Added a console mode.