Chain can now be used as generator (synchronous API)