Added debug mode flags