Improved packet class and packet registration.