Update generator.c