Using loop to track last-snapshot-ts.
Using reduce to have ts closure capture.