Added handling of more packets.