Added ip check.