Some prototyping and tests of the API.