Parser - new function for header parsing