Could we start using `global.params.*` here instead of `TARGET_*`?  Mixing both in the same function looks a bit weird.