SegmentHandler: Changed to a class