Which of the following is not a function of the skin?