Folding sequences