Simplified usage of  weak to shared pointers.