Changed SharedPtr to std:shared_ptr.