Store the last segment length

Last updated