There are two types of peritoneal dialysis CAPD (Continuous Ambulatory Peritoneal Dialysis) and APD (Automated Peritoneal Dialysis). CAPD is done manually, while a machine is used for APD. There is complete freedom to carry out daily living routines between bag changes. APD takes place at night. The patient is attached to a machine that cycles fluid in and out of the abdomen while the patient is asleep, usually over an 8 to 9-hour period. Often, fluid is left in the abdomen during the day. This type of dialysis allows freedom from exchanges during the day, APD is mostly used for patients who for some reason would find it difficult to do bag changes during the day.