Changed debug to look for ENV var