Tweaked code examples.