Update API in various examples.