Fixed code examples to reflect API change