Update gtapi.php