Remove getHeadings function