Add functions to global script