nit: If we don't use `index` in the function, simply ignore the parameter.