Fixed the example; did use a non-existent stopping criterion.