Only take necessary sections, calculate total amount of sections