Added implemetation for SetProtectionEnabled.