Send promises.
Merge branch `rewrite` into `master`.