Move the code that generates multiple requests to script.c