Batch update function