Added Andrew's generate.php