Update class.Engine.php