Made updating an index dependent on should_update = True