Refactored packets.

Signed-off-by: King Lemming <kinglemming@gmail.com>