Added progress bar for calculation