Added a segment attribute to Label objects