Update index is a good thing
Separated save mechanism to other function