Redo example code to use new changes.