Added a bunch of functionalities to current cli.