diff --git a/regbar.info b/regbar.info
index 3375fca..5b5bedd 100755
--- a/regbar.info
+++ b/regbar.info
@@ -1,3 +1,7 @@
-core = 6.x
+core = 7.x
 name = Regbar
 description = Used to generate icards containing barcodes.
+
+files[] = regbar.install
+files[] = regbar.module
+files[] = regbar.admin.inc
diff --git a/regbar.install b/regbar.install
index cd6fdcd..79401c8 100755
--- a/regbar.install
+++ b/regbar.install
@@ -54,39 +54,8 @@ function regbar_requirements($phase) {
           'title'       => $t('Arial Font file'),
           'severity'    => REQUIREMENT_OK,
         );
-        $regbar_directory = file_create_path() . '/regbar';
-        if (!file_check_directory($regbar_directory, FILE_CREATE_DIRECTORY | FILE_MODIFY_PERMISSIONS)) {
-          if (!is_dir($regbar_directory)) {
-            $requirements['regbar_directory'] = array(
-              'title' => $t('Barcode directory'),
-              'value' => $t('%p is not a directory or is not readable by the webserver.', array('%p' => $regbar_directory)),
-              'severity' => REQUIREMENT_ERROR,
-            );
-          }
-          elseif (!is_writable($regbar_directory)) {
-            $requirements['regbar_directory'] = array(
-              'title' => $t('Barcode directory'),
-              'value' => $t('%p is not writeable by the webserver.', array('%p' => $regbar_directory)),
-              'severity' => REQUIREMENT_ERROR,
-            );
-          }
-          else {
-            $requirements['regbar_directory'] = array(
-              'title' => $t('Barcode directory'),
-              'value' => $t('An unknown error occured.'),
-              'description' => $t('An unknown error occured trying to verify %p is a directory and is writable.', array('%p' => $regbar_directory)),
-              'severity' => REQUIREMENT_ERROR,
-            );
-          }
-        }
-
-        if (!is_writable(file_directory_temp())) {
-          $requirements['regbar_directory'] = array(
-            'title' => $t('BarcodeCache temp directory'),
-            'value' => $t('%p is not writeable by the webserver.', array('%p' => file_directory_temp())),
-            'severity' => REQUIREMENT_ERROR,
-          );
-        }
+        $path = 'public://regbar';
+        file_prepare_directory($path, FILE_CREATE_DIRECTORY);
       }
       break;
 
