Rename ref to promise.