Couldn't do global due to scope issues...

I'll come up with a cleaner way to do this when I have time.