Updated to work with new Stagehand-core structure