Added progressbar functionality