Implement command-line interface