Debug flag added