Merged window changes with functional packet sending and receiving code