Add a progressbar feature and the corresponding APIs