Added wrapper function for packet struct.