Peritoneal dialysis is often performed at home. A catheter is surgically inserted into the abdominal cavity. A dialysis solution flows into the peritoneum, absorbs waste products, and is then drained away. This can be done through Continuous Ambulatory Peritoneal Dialysis (CAPD), which requires multiple exchanges throughout the day, or Automated Peritoneal Dialysis (APD), done using a machine during the night.