in reply to Let users wait for the results
Rather than have two cgi files, you can have just one, and scale it easily for your web app.