Revised for multiple sections