diff --git a/geolocationqueue.info.yml b/geolocationqueue.info.yml
index 79cc66d..0600f17 100644
--- a/geolocationqueue.info.yml
+++ b/geolocationqueue.info.yml
@@ -2,4 +2,5 @@ name: GeoLocationQueue
 type: module
 description: Geo Location Queue Worker
 core: 8.x
+core_version_requirement: ^8 || ^9
 package: twelvestepintergroup
diff --git a/src/Plugin/QueueWorker/GeoLocationQueueWorker.php b/src/Plugin/QueueWorker/GeoLocationQueueWorker.php
index e86900e..8f0fc36 100644
--- a/src/Plugin/QueueWorker/GeoLocationQueueWorker.php
+++ b/src/Plugin/QueueWorker/GeoLocationQueueWorker.php
@@ -76,7 +76,7 @@ class GeoLocationQueueWorker extends QueueWorkerBase implements ContainerFactory
    */
   private function _processItem($data) {
     // Load the entity.
-    if (!$entity = entity_load($data->entity_type, $data->entity_id)) {
+    if (!$entity = \Drupal::service('entity_type.manager')->getStorage($data->entity_type)->load($data->entity_id)) {
       return;
     }
     $entity_url = $entity->toUrl()->toString();
