Added support for executing inputted commands