Since `manifest.segments` is an array, we want to use a regular for loop here.