Changed shared ptr to const