Fixing names of addToScope functions
Adding doOnce to global scope