Added basic IP checking functionality