Updates to the API and examples.