Update examples to match new API.