This `i` is global.