Changed constants to iOS6-compatible