Update all examples with new API.