Replaced PathElement with Segment