what is not a function of the heart?