diff --git a/jquery_slideshow.module b/jquery_slideshow.module
index bc4737b..6b97b3f 100644
--- a/jquery_slideshow.module
+++ b/jquery_slideshow.module
@@ -172,6 +172,14 @@ function jquery_slideshow_admin() {
     '#default_value' => variable_get('jquery_slideshow_showcontrols', 'Yes'),
     );
 
+  $form['jquery_slideshow_nowrap'] = array(
+      '#type' => 'select',
+      '#title' => t('Prevent slideshow from wrapping?'),
+      '#description' => t('Stop the slideshow from starting again at the beginning after reaching the end.'),
+      '#options' => drupal_map_assoc(array('Yes', 'No')),
+      '#default_value' => variable_get('jquery_slideshow_nowrap', 'No'),
+  );
+
   return system_settings_form($form);
 }
 
@@ -206,7 +214,8 @@ function _jquery_slideshow_get_settings($jq_slideshow_id, $preset) {
         'speed' => variable_get('jquery_slideshow_speed', 500),
         'timeout' => variable_get('jquery_slideshow_timeout', 4000),
         'next' => '#jqs-next-slide',
-        'prev' => '#jqs-prev-slide'
+        'prev' => '#jqs-prev-slide',
+        'nowrap' => variable_get('jquery_slideshow_nowrap', 'No') == 'No' ? 0 : 1,
       ),
     )), 'setting');
 }
