Use var for currentSection variable