Maintaining water and nitrogen balance in the body