Compatibility with iOS versions prior to 6.x