Debugging.
Threadsafe JS
Use JSAutoRequest.
Use more JSAutoRequest.
Use a native task for the script task.