Update the API and tests.