Doc and tests.