Merge branch `rewrite` into `master`.
Fix quorum calculation.