Wrote a new packet handler.