Add progress function.