Header encoding was overwriting packets instead of appending to them.
Rename a function to something that better describes its role.