Now use CmdArgs.
Fixed warnings.