Add autofolding features.