Implemented basic command-line front-end.