Improved the command line editor