Generating progress bar values logic updated