Foundation for the API.