Finish API and add unit tests.