Adding progress bar implementation