Update use of headers.append