Update Core.php