Added a snippet for weak self