DebugMode is added to avoid SaveContent metod