How does thyroid dysfunction affect metabolism?