By determining how many of those molecules to hold onto, how many to keep in the body, how many to release determines the internal composition with regard to that ion.
It is, but the amount of work pales to almost insignificance when compared to the alternative: rushing around like the Wicked Witch of the East, scattering signals to the wind, and wondering why houses keep dropping onto our heads.