Clean up index; make variable private.