Added KJKCFG variable checks