Using config vars for detect