A machine outside the body performs the action of the kidneys by filtering out urea and other waste substances and reabsorbing sugar, water, etc. Blood is taken from a vessel in the arm, mixed with an anticoagulant, and passed through a machine containing dialysis fluid separated from blood via a partially permeable membrane. Dialysis fluid contains a similar level of glucose and ions as in the blood, allowing these substances to remain in the blood and return to the body. Urea diffuses out of the blood into the dialysis fluid down a concentration gradient