Fixed Example. Forgot to update this after API changes to underlying functions.