This was existing code I moved from ScriptRequest.