Describe what a dialysis machine needs to do in order to perform the same role as the kidneys play in the body.