Changed to shared_ptr.