Added g_scope class
Updated label registration