Added IP checking.