Added readonly current index property.