A device with a blood pump, at least two points of access to the abdominal wall and tubes connecting the blood pump and points of access to the abdominal wall, which is known as a peritoneal dialysis system, is equipped with a CO2 removal arrangement, in order to use it tor blood oxygenation and/or CO2 removal.