Small changes to Packet methods and fixed return types.