Added $this to g:init.