Figure out the API and document it