Update CoreModel.php