XML Output now wrapping in <output> tags.  Fixed multiple-dialog problem due to multithreaded processing.