A segment script