Updates

Code changes + New IP function