Update examples to use new API.