Change compiler setting to iOS 5.0
Move interval check to connectionMode