Changed delegate references to weak.