Updated to still compile on non iOS 8 devices