Update examples to work with the latest framework changes.