Added segment id relabeler method.