I was going to suggest using response.flush after time consuming parts of your code too.
"People who think they know everything are a great annoyance to those of us who do."
Forum Rules