Updated for iOS7 & 64 bit