Added main loop command-line with "q" quit.