Add folding for modules.