Pattern Matching part from Fear of Macro
Add header in pattern matching file