Added ProtectPtr wrapper.