Maintain iOS4 compatibility