The kidney is mostly a device for maintaining water balance in the animal, rather than an organ of excretion.