Thank you for the suggestions. I have temporary solved this problem by
extend the time Thunderbird alert the unresponsive dialog.

But I guess I will still have to rewrite my code to have my algorithm
execute in interval and present a progress meter.

Again, thank you for the suggestions. I really appreciate the help.

Eric