Made currentIndex public