Updated with iOS 7 methods