diff --git a/src/Form/PrepareHttpblEntityUninstallForm.php b/src/Form/PrepareHttpblEntityUninstallForm.php
index 80e7bb5..ea5b3dc 100644
--- a/src/Form/PrepareHttpblEntityUninstallForm.php
+++ b/src/Form/PrepareHttpblEntityUninstallForm.php
@@ -142,11 +142,12 @@ class PrepareHttpblEntityUninstallForm extends PrepareModulesEntityUninstallForm
 
     if (!isset($context['sandbox']['progress'])) {
       $context['sandbox']['progress'] = 0;
-      $context['sandbox']['max'] = $storage->getQuery()->count()->execute();
+      $context['sandbox']['max'] = $storage->getQuery()->accessCheck(FALSE)->count()->execute();
     }
 
     $entity_type = \Drupal::entityTypeManager()->getDefinition($entity_type_id);
     $entity_ids = $storage->getQuery()
+      ->accessCheck(FALSE)
       ->sort($entity_type->getKey('id'), 'ASC')
       ->range(0, 10)
       ->execute();
diff --git a/src/HostQuery.php b/src/HostQuery.php
index f3a19be..55ed480 100644
--- a/src/HostQuery.php
+++ b/src/HostQuery.php
@@ -15,7 +15,7 @@ abstract class HostQuery extends Host implements HostInterface {
    */
   public static function getHostsByIp($ip) {
     $query = \Drupal::entityQuery('host');
-    $query->condition('host_ip', $ip);
+    $query->accessCheck(FALSE)->condition('host_ip', $ip);
     /** @var array $entity_ids */
     $entity_ids = $query->execute();
     return $entity_ids;
@@ -39,7 +39,7 @@ abstract class HostQuery extends Host implements HostInterface {
    */
   public static function countExpiredHosts($now) {
     $query = \Drupal::entityQuery('host');
-    $query->condition('expire', $now, '<=');
+    $query->accessCheck(FALSE)->condition('expire', $now, '<=');
     $count = $query->count()->execute();
     return $count;
   }
@@ -49,7 +49,7 @@ abstract class HostQuery extends Host implements HostInterface {
    */
   public static function getExpiredHosts($now) {
     $query = \Drupal::entityQuery('host');
-    $query->condition('expire', $now, '<=');
+    $query->accessCheck(FALSE)->condition('expire', $now, '<=');
     $entity_ids = $query->execute();
     return $entity_ids;
   }
diff --git a/src/HttpblMiddleware.php b/src/HttpblMiddleware.php
index ba41e55..dfe57c6 100644
--- a/src/HttpblMiddleware.php
+++ b/src/HttpblMiddleware.php
@@ -3,6 +3,7 @@
 namespace Drupal\httpbl;
 
 use Symfony\Component\HttpFoundation\Request;
+use Symfony\Component\HttpFoundation\Response;
 use Symfony\Component\HttpKernel\HttpKernelInterface;
 
 /**
@@ -53,7 +54,7 @@ class HttpblMiddleware implements HttpKernelInterface {
    *
    * Primary request handler for Httpbl.
    */
-  public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = TRUE) {
+  public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = TRUE): Response {
 
     // IMPORTANT - Don't move or remove this line.
     $defaultResponse = $this->httpKernel->handle($request, $type, $catch);
diff --git a/src/Logger/HttpblLogTrapper.php b/src/Logger/HttpblLogTrapper.php
index 364a9bb..9c7aec3 100644
--- a/src/Logger/HttpblLogTrapper.php
+++ b/src/Logger/HttpblLogTrapper.php
@@ -145,7 +145,7 @@ class HttpblLogTrapper implements HttpblLogTrapperInterface {
   /**
    * {@inheritdoc}
    */
-  public function log($level, $message, array $context = array()) {
+  public function log($level, $message, array $context = array()): void {
     // Convert PSR3-style messages to SafeMarkup::format() style, so they can be
     // translated too in runtime.
     // @todo No longer using this for the time being.  Remove once certain it is
@@ -181,6 +181,6 @@ class HttpblLogTrapper implements HttpblLogTrapperInterface {
       }
     
     $this->logger->$method($message, $context);
-   }
+  }
 
 }
\ No newline at end of file
