Frequent freezes and crashes on iPhone app