Added header parsing code for source.