Update g_cmds.c