Add progress bar and error detection