Add trace debugging for headers