Wrote the stat packet's switch cases.