Implemented shared_ptrs.