Makes compatible with iOS7