Pass in index to accessors.