Segment action method added to segment class.