Modify n chains.