Moved rendering to a separate thread (it no longer locks up the UI). Improved smoothness of the progress bar.