Added PacketOutputStream for synchronized packet sending.