Update xSGCore.php