Added some analytics and a cli interface