diff --git a/fillpdf.admin.inc b/fillpdf.admin.inc
index 3b9d5ef..4c4383c 100644
--- a/fillpdf.admin.inc
+++ b/fillpdf.admin.inc
@@ -21,6 +21,8 @@ define('FILLPDF_REPLACEMENTS_DESCRIPTION', t("<p>Tokens, such as those from CCK,
  * Settings form for user to place API Key
  */
 function fillpdf_settings($form, &$form_state) {
+  $fillpdf_service = variable_get('fillpdf_service');
+
   // Assemble service options. Warning messages will be added next as needed.
   $options = array(
     'pdftk' => t('Use locally-installed pdftk: You will need a VPS or a dedicated server so you can install pdftk (') . l(t('see documentation'),  'admin/help/fillpdf') . t(').'),
@@ -47,30 +49,35 @@ function fillpdf_settings($form, &$form_state) {
     '#type' => 'radios',
     '#title' => t('PDF-filling service'),
     '#description' => t('This module requires the use of one of several external PDF manipulation tools. Choose the service you would like to use.'),
-    '#default_value' => variable_get('fillpdf_service'),
+    '#default_value' => $fillpdf_service,
     '#options' => $options,
   );
-  $form['remote'] = array(
-    '#type' => 'fieldset',
-    '#title' => t('Configure fillpdf-service.com'),
-  );
-  $form['remote']['fillpdf_api_key'] = array(
-    '#type' => 'textfield',
-    '#title' => t('API Key'),
-    '#default_value' => variable_get('fillpdf_api_key', ''),
-    '#description' => t('You need to sign up for an API key at <a href="https://fillpdf-service.com">fillpdf-service.com</a>'),
-  );
-  $form['remote']['fillpdf_remote_protocol'] = array(
-    '#type' => 'radios',
-    '#title' => t('Use SSL?'),
-    '#description' => t('It is recommended to select <em>Yes</em> for this option. Doing so will help prevent
-      sensitive information in your PDFs from being intercepted in transit.'),
-    '#default_value' => variable_get('fillpdf_remote_protocol', 'https'),
-    '#options' => array(
-      'https' => t('Yes'),
-      'http' => t('No'),
-      ),
-  );
+
+  switch ($fillpdf_service) {
+    case 'remote':
+      $form['remote'] = array(
+        '#type' => 'fieldset',
+        '#title' => t('Configure fillpdf-service.com'),
+      );
+      $form['remote']['fillpdf_api_key'] = array(
+        '#type' => 'textfield',
+        '#title' => t('API Key'),
+        '#default_value' => variable_get('fillpdf_api_key', ''),
+        '#description' => t('You need to sign up for an API key at <a href="https://fillpdf-service.com">fillpdf-service.com</a>'),
+      );
+      $form['remote']['fillpdf_remote_protocol'] = array(
+        '#type' => 'radios',
+        '#title' => t('Use SSL?'),
+        '#description' => t('It is recommended to select <em>Yes</em> for this option. Doing so will help prevent
+          sensitive information in your PDFs from being intercepted in transit.'),
+        '#default_value' => variable_get('fillpdf_remote_protocol', 'https'),
+        '#options' => array(
+          'https' => t('Yes'),
+          'http' => t('No'),
+          ),
+      );
+      break;
+  }
 
   return system_settings_form($form);
 }
