Added ability to add/customize globals with: addGlobal(name, func)