Amends README file example to new APIs