Script event handler implementation (+ small in/out variables)
Script event handler + in/out variables