I would loop over `data.noncoordinates` instead of `_vars` to avoid using the global variable.