From the bladder, the dye is discharged out of the body through the urethra. X-rays are then taken of the kidney and bladder area to determine if and how fast both kidneys are working.