Use concept of weak pointer.