Added shim mode to attach functions to the window.