Adjust examples to refactored API.