Changed example script to reflect latest changes.