Added basic IP logic