Add main header parsing functionality.