Adding scripting to actions