They are essential in the urinary system and also serve homeostatic functions such as the regulation of electrolytes , maintenance of acid–base balance , and regulation of blood pressure (via maintaining salt and water balance).