-print("<br>The browser brand is reported as "<b>".$ua->brand."</b>"\n");
-print("<br>The browser version is reported as "<b>".$ua->version."</b>"\n");
+print("<br>This is <b>".($ua->isbot()?"an":"no")."</b> automated robot.\n");
+print("<br>The browser brand is reported as "<b>".$ua->getBrand()."</b>"\n");
+print("<br>The browser version is reported as "<b>".$ua->getVersion()."</b>"\n");