Added support for folds.