Add metadata to header