Updated readme sample to use updated interface