diff --git a/plupload/plupload.install b/plupload/plupload.install
index ef808e5..e8a9e8a 100755
--- a/plupload/plupload.install
+++ b/plupload/plupload.install
@@ -27,3 +27,11 @@ function plupload_requirements($phase) {
 
   return $requirements;
 }
+
+/**
+ * Implements hook_uninstall().
+ */
+function plupload_uninstall() {
+  variable_del('plupload_max_file_size');
+  variable_del('plupload_chunk_size');
+}
\ No newline at end of file
diff --git a/plupload/plupload.module b/plupload/plupload.module
index a37a62a..d0e9113 100755
--- a/plupload/plupload.module
+++ b/plupload/plupload.module
@@ -256,8 +256,7 @@ function plupload_library() {
           // @todo Provide a settings page for configuring these.
           'runtimes' => 'html5,flash,html4',
           'url' => url('plupload-handle-uploads', array('query' => array('plupload_token' => drupal_get_token('plupload-handle-uploads')))),
-          'max_file_size' => '10mb',
-          'chunk_size' => '1mb',
+          'max_file_size' => variable_get('plupload_max_file_size', '10mb'),
           'unique_names' => TRUE,
           'flash_swf_url' => file_create_url($library_path . '/js/plupload.flash.swf'),
           'silverlight_xap_url' => file_create_url($library_path . '/js/plupload.silverlight.xap'),
@@ -278,6 +277,11 @@ function plupload_library() {
       ))),
     ),
   );
+  $chunk_size = variable_get('plupload_chunk_size', '1mb');
+  if (!empty($chunk_size)) {
+    $libraries['plupload']['js'][0]['data']['plupload']['_default']['chunk_size'] = $chunk_size;
+  }
   return $libraries;
 }
 
@@ -446,3 +450,41 @@ function _plupload_default_upload_validators() {
     'file_validate_extensions' => array('jpg jpeg gif png txt doc xls pdf ppt pps odt ods odp'),
   );
 }
+
+/**
+ * Implements hook_variable_group_info().
+ */
+function plupload_variable_group_info() {
+  $groups = array();
+
+  $groups['plupload'] = array(
+    'title' => t('PLUpload settings'),
+    'description' => t('PLUpload settings'),
+  );
+
+  return $groups;
+}
+
+/**
+ * Implements hook_variable_info().
+ */
+function plupload_variable_info($options) {
+  $variables = array();
+
+  $variables['plupload_max_file_size'] = array(
+    'title' => t('Max File Upload Size'),
+    'description' => t('Maximum file size that the user can pick. This string can be in the following formats 100b, 10kb, 10mb.'),
+    'type' => 'string',
+    'default' => '10mb',
+    'group' => 'plupload',
+  );
+  $variables['plupload_chunk_size'] = array(
+    'title' => t('Upload Chunk Size'),
+    'description' => t('Enables you to chunk the file into smaller pieces for example if your PHP backend has a max post size of 1MB you can chunk a 10MB file into 10 requests.  To disable chunking, set this to 0 or leave blank.'),
+    'type' => 'string',
+    'default' => '1mb',
+    'group' => 'plupload',
+  );
+
+  return $variables;
+}
\ No newline at end of file
