Adding ip segment script