Embedded scripting working