Added logic to append to existing header or just add to new header to the packet builder