Removed unneeded code for iOS7+