Adding header confirmation check