Updated tutorial to reflect API changes.