Proper ai->protocol handling.