Smart rate control