Update generateObject.php