Made some changes to how sections are returned, now with a section counter