Implement command line interface