Added folding method