Implemented SegmenthLength query.