Set the index