Functions of the nervous system include all of the following EXCEPT: