Added Writing to header