I think we can remove the `pos` variable. I'm not seeing it used anywhere.