Add a progress function which takes the previous promises value