Updated example in README to new interface.