Added a command-line frontend.