Made progress bar more accurate