Update classes/base.php