Modified PPfold by me