Update core/engine.php