Added global context

You can simply use a `for` loop here, and everything looks fine, I guess.