How to make functions apply to global environment directly? I have a bunch of code that I want to make into a function.