Debug, add tests.