Added ip check