Update Generate.php