Added proper iOS <7 detection