Added automatic old index deletion.