Update examples to latest API.