Reuses updateFn instead of redefining it on every tick.