Translated getSegment() method