Dedicated function for retrieving headings.