Add a function to get Packet ID