g_ai.c
These are the new changes