Debug flag controls checked/unchecked