Rework Parser to use Log util and add header detection.