Factor out packetList