Implemented folding for multipart preambles and epilogues