diff --git a/simple_image_rotate.info.yml b/simple_image_rotate.info.yml
index 5a7bed6..81474b6 100644
--- a/simple_image_rotate.info.yml
+++ b/simple_image_rotate.info.yml
@@ -1,8 +1,7 @@
 name: Simple Image Rotate
 description: Simple image rotation
 type: module
-core: 8.x
-core_version_requirement: ^8 || ^9
+core_version_requirement: ^9.3 || ^10
 package: Media
 dependencies:
   - drupal:image
diff --git a/simple_image_rotate.module b/simple_image_rotate.module
index 3078f0b..cad98d8 100644
--- a/simple_image_rotate.module
+++ b/simple_image_rotate.module
@@ -193,7 +193,7 @@ function simple_image_rotate_rotate_image(EntityInterface &$entity) {
             }
 
             // Move image file to a new location.
-            if (file_move($file, $new_uri, FileSystemInterface::EXISTS_ERROR)) {
+            if (\Drupal::service('file.repository')->move($file, $new_uri, FileSystemInterface::EXISTS_ERROR)) {
 
               // Update file object after moving file.
               $file = File::load($fid);
