Added an example use of the API.