Added agent packet handler.