Added ability to quit with "q".