Implemented cli interface