The add_header later should be on the transaction too :)