Update g script