currentIndex : public accessor.