Update core_engine.php