Update core.php