Update function signatures.
Merge branch `cleanup` into `master`.