Added header logging