diff --git a/import_html_process.inc b/import_html_process.inc
index a3d91c4..4d2f414 100644
--- a/import_html_process.inc
+++ b/import_html_process.inc
@@ -1372,7 +1372,7 @@ function import_html_guess_label($title, $path) {
   // If your TITLE is long, prefer to drop back to filename,
   // which may be more concise and meaningful.
   // Truncating a long title often loses any info it had.
-  if (strlen($title) > IMPORT_HTML_MAX_LABEL_LENGTH || empty($title) ) {
+  if (strlen($title) > $proflie['menu_link_max_length'] || empty($title) ) {
     if (! empty($path)) { // Yeah. No path.module, no path.
       $path_bits = explode('/', $path);
       $label = array_pop($path_bits);
@@ -1389,10 +1389,10 @@ function import_html_guess_label($title, $path) {
       // Long title but no path. OK, truncate the title.
       // Should I user node_teaser($title, NULL, IMPORT_HTML_MAX_LABEL_LENGTH)
       // Or my own one-liner to break on spaces.
-      $label = preg_replace('/\s+?(\S+)?$/', '', substr($title, 0, IMPORT_HTML_MAX_LABEL_LENGTH));
+      $label = preg_replace('/\s+?(\S+)?$/', '', substr($title, 0, $profile['menu_link_max_length']));
       if (empty($label)) {
         // A really long word? chop then
-        $label = substr($title, 0, IMPORT_HTML_MAX_LABEL_LENGTH);
+        $label = substr($title, 0, $profile['menu_link_max_length']);
       }
     }
   }
diff --git a/import_html_ui.inc b/import_html_ui.inc
index afe0666..f9cdd41 100644
--- a/import_html_ui.inc
+++ b/import_html_ui.inc
@@ -619,6 +619,14 @@ function import_html_profile_settings($form, &$form_state, $profile_id) {
       "),
     );
 
+    $form['replication']['menu']['menu_link_max_length'] = array(
+      '#type' => 'textfield',
+      '#size' => 4,
+      '#title' => t("Menu link max length"),
+      '#default_value' => $profile['menu_link_max_length'],
+      '#description' => t('The maximum length of a menu link title in characters'),
+    );
+
     $form['replication']['menu']['hide_default_menu_placeholders'] = array(
       '#type' => 'checkbox',
       '#title' => t('Hide placeholder menu items'),
