Fixed example in README to reflect API change