It's also not obvious what the `local()` wrapping this code is doing.