Homeostatic control system