Added get and set globals to Wig
Added toggle-style mode