Update generator.php