Which of the following is a function of the endocrine system?