Tagged scripting