Rewrite.
Setup tests.
...