Added shared_ptr utils