Added header middleware