Error trapping additional segments loop