Keep the UI from becoming non-responsive in single threaded application which performs a long operation.