Fixed bug where only one argument was passed to exCmd() function.