Adding method to adjust the header fields