First version of header parser