Backward compatibility for < iOS7