Avoid an extra loop over the sections.