Added iOS8 detection