Rename local (`tag` in function) to something unique, e.g. `t`.