Add check to make sure launchcmd is being used to be sure var is set