Implementing thread to display the progressbar Progress.