What part of the homeostatic regulatory system detects changes in the environment?