Rewrite packet system

Signed-off-by: ZeldoKavira <zeldokavira@gmail.com>