Add ugly struct sending code.