Added the foldingFunc type.