Fixing the example to support the new method chain for Algorithm.