An artificial partially permeable membrane is used in dialysis machines between the blood and dialysis fluid so that smaller substances (glucose, ions, water and urea) can diffuse through but larger molecules like plasma proteins cannot and will remain in the blood.