Added debug mode flags. This allows debug mode to be more specifically
tuned.