Added the packet class and some crypto.