Adding SetProtection functionality to allow protection to be disabled for certain debugging situations.