Added automatic packet registration.