Begin CmdExec & fix some problems