Updating examples to match new API.