Add ugly struct receiving code.