Put From and To in Segment
Fixed serialization