Adding and changing index