Update examples to the new syntax.