Limit scope of script engine.