Improved packet handling mechanism.