Added DebugMode Logging