What is the role of TSH in thyroid function tests?