Replaced shared_ptr(new) construction with make_shared.