I was going to suggest using response.flush after time consuming parts of your code too.