Create fold_detection