Okay, thanks. If I can move the script engine into the thread then this sounds like a good approach.