Added iOS7 support