Added progress bar code