Switched packets to use classes instead of structs.