Added progress bar and background task.