You don't need `global` unless you're replacing the value of `_loop`.  Setting an attribute is fine.

(I know, it's confusing.)