Fixed example in README due to API change