Added update function to IP