Refactored the console to support a submit button.