Explain the feedback mechanisms that maintain homeostasis.