Added progress bar, works correctly