Adding command-line interface.