Finished implementing CLI.