Updated to use ActiveSections for loop