Update to use foldable-seq library