Adding command line running functionality