Add possibility to only update certain indices