Added getShell() and updated exec()