Reordered the DEBUG_MODE related preprocessor stuff.