Added a packet handler