Initial work on CLI interface.