Added iOS6 conditions