Use packet structures instead of byte buffers