API changes
Update examples to reflect API change