Added debug switch to config