Main code of Pinba.php extension.