Code minimized
Add COMMAND mode (restart and quit commands)