RE: Various problems with packet writing