diff --git a/theme/views-slideshow-jcarousel-pager-item.tpl.php b/theme/views-slideshow-jcarousel-pager-item.tpl.php
index 5a0140b..6bfeee3 100644
--- a/theme/views-slideshow-jcarousel-pager-item.tpl.php
+++ b/theme/views-slideshow-jcarousel-pager-item.tpl.php
@@ -1,3 +1,3 @@
-<li<?php print drupal_attributes($attributes); ?>>
+<li<?php print $attributes; ?>>
   <?php print $item; ?>
 </li>
diff --git a/theme/views-slideshow-jcarousel-pager.tpl.php b/theme/views-slideshow-jcarousel-pager.tpl.php
index 64f9d27..f773f60 100644
--- a/theme/views-slideshow-jcarousel-pager.tpl.php
+++ b/theme/views-slideshow-jcarousel-pager.tpl.php
@@ -1,4 +1,4 @@
-<div<?php print drupal_attributes($attributes); ?>>
+<div<?php print $attributes; ?>>
   <ul>
     <?php print $rendered_field_items; ?>
   </ul>
diff --git a/theme/views_slideshow_jcarousel.theme.inc b/theme/views_slideshow_jcarousel.theme.inc
index 9993f73..f79f58c 100644
--- a/theme/views_slideshow_jcarousel.theme.inc
+++ b/theme/views_slideshow_jcarousel.theme.inc
@@ -26,10 +26,10 @@ function _views_slideshow_jcarousel_preprocess_pager(&$vars) {
   );
 
   // Add the settings to the page.
-  drupal_add_js($js_vars, 'setting');
+  drupal_add_js($js_vars, array('type' => 'setting', 'scope' => JS_DEFAULT));
 
   // Add our class to the wrapper.
-  $vars['attributes']['class'] = (isset($vars['attributes']['class'])) ? $vars['attributes']['class'] . ' views_slideshow_jcarousel_pager jcarousel-skin-' . $vars['settings']['views_slideshow_jcarousel_pager_skin'] : 'views_slideshow_jcarousel_pager jcarousel-skin-' . $vars['settings']['views_slideshow_jcarousel_pager_skin'];
+  $vars['attributes_array']['class'] = (isset($vars['attributes_array']['class'])) ? $vars['attributes_array']['class'] . ' views_slideshow_jcarousel_pager jcarousel-skin-' . $vars['settings']['views_slideshow_jcarousel_pager_skin'] : 'views_slideshow_jcarousel_pager jcarousel-skin-' . $vars['settings']['views_slideshow_jcarousel_pager_skin'];
 
   // Render all the fields unless there is only 1 slide and the user specified
   // to hide them when there is only one slide.
@@ -39,10 +39,10 @@ function _views_slideshow_jcarousel_preprocess_pager(&$vars) {
       $rendered_fields = '';
       foreach ($vars['settings']['views_slideshow_jcarousel_pager_fields'] as $field => $use) {
         if ($use !== 0 && is_object($vars['view']->field[$field])) {
-          $rendered_fields .= theme('views_slideshow_jcarousel_pager_field', $vars['view'], $field, $count);
+          $rendered_fields .= theme('views_slideshow_jcarousel_pager_field', array('view' => $vars['view'], 'field' => $field, 'count' => $count));
         }
       }
-      $vars['rendered_field_items'] .= theme('views_slideshow_jcarousel_pager_item', $vars['vss_id'], $rendered_fields, $count, $vars['location']);
+      $vars['rendered_field_items'] .= theme('views_slideshow_jcarousel_pager_item', array('vss_id' => $vars['vss_id'], 'item' => $rendered_fields, 'count' => $count, 'location' => $vars['location']));
     }
 
     if (module_exists('libraries')) {
@@ -75,6 +75,6 @@ function _views_slideshow_jcarousel_preprocess_pager_item(&$vars) {
   }
   $classes[] = ($vars['count'] % 2) ? 'views-row-even' : 'views-row-odd';
 
-  $vars['attributes']['class'] = implode(' ', $classes);
-  $vars['attributes']['id'] = 'views_slideshow_jcarousel_pager_item_' . $vars['location'] . '_' . $vars['vss_id'] . '_' . $vars['count'];
+  $vars['attributes_array']['class'] = implode(' ', $classes);
+  $vars['attributes_array']['id'] = 'views_slideshow_jcarousel_pager_item_' . $vars['location'] . '_' . $vars['vss_id'] . '_' . $vars['count'];
 }
diff --git a/views_slideshow_jcarousel.info b/views_slideshow_jcarousel.info
index ac6f59c..0c7d679 100644
--- a/views_slideshow_jcarousel.info
+++ b/views_slideshow_jcarousel.info
@@ -2,4 +2,4 @@ name = Views Slideshow: JCarousel
 description = Adds a jCarousel option to views slideshow
 dependencies[] = views_slideshow
 package = Views
-core = 6.x
+core = 7.x
diff --git a/views_slideshow_jcarousel.module b/views_slideshow_jcarousel.module
index bcfe53e..a6814df 100644
--- a/views_slideshow_jcarousel.module
+++ b/views_slideshow_jcarousel.module
@@ -1,21 +1,24 @@
 <?php
 /**
- * Implement hook_theme().
+ * Implements hook_theme().
  */
 function views_slideshow_jcarousel_theme($existing, $type, $theme, $path) {
   return array(
     'views_slideshow_jcarousel_pager' => array(
-      'arguments' => array('vss_id' => NULL, 'view' => NULL, 'settings' => array(), 'location' => NULL, 'attributes' => array()),
-      'template' => 'theme/views-slideshow-jcarousel-pager',
+      'variables' => array('vss_id' => NULL, 'view' => NULL, 'settings' => array(), 'location' => NULL, 'attributes' => array()),
+      'template' => 'views-slideshow-jcarousel-pager',
+      'path' => $path . '/theme',
     ),
     'views_slideshow_jcarousel_pager_field' => array(
-      'arguments' => array('view' => NULL, 'field' => NULL, 'count' => NULL),
-      'template' => 'theme/views-slideshow-jcarousel-pager-field',
-      'file' => 'theme/views_slideshow_jcarousel.theme.inc',
+      'variables' => array('view' => NULL, 'field' => NULL, 'count' => NULL),
+      'template' => 'views-slideshow-jcarousel-pager-field',
+      'file' => 'views_slideshow_jcarousel.theme.inc',
+      'path' => $path . '/theme',
     ),
     'views_slideshow_jcarousel_pager_item' => array(
-      'arguments' => array('vss_id' => NULL, 'item' => NULL, 'count' => NULL, 'location' => NULL),
-      'template' => 'theme/views-slideshow-jcarousel-pager-item',
+      'variables' => array('vss_id' => NULL, 'item' => NULL, 'count' => NULL, 'location' => NULL),
+      'template' => 'views-slideshow-jcarousel-pager-item',
+      'path' => $path . '/theme',
     ),
   );
 }
@@ -49,6 +52,10 @@ function _views_slideshow_jcarousel_library_path() {
   return $jcarousel_path;
 }
 
+/**
+ * @todo Please document this function.
+ * @see http://drupal.org/node/1354
+ */
 function views_slideshow_jcarousel_views_slideshow_js_method_register() {
   return array(
     'viewsSlideshowJcarouselPager',
@@ -56,7 +63,7 @@ function views_slideshow_jcarousel_views_slideshow_js_method_register() {
 }
 
 /**
- * Implementation of hook_views_slideshow_info
+ * Implements hook_views_slideshow_info().
  */
 function views_slideshow_jcarousel_views_slideshow_widget_pager_info($view) {
   $settings = array();
@@ -74,7 +81,7 @@ function views_slideshow_jcarousel_views_slideshow_widget_pager_info($view) {
 }
 
 /**
- * Implements hook_views_slideshow_option_definition.
+ * Implements hook_views_slideshow_option_definition().
  */
 function views_slideshow_jcarousel_views_slideshow_option_definition() {
   $locations = array('top', 'bottom');
@@ -113,15 +120,15 @@ function views_slideshow_jcarousel_pager_views_slideshow_widget_pager_form_optio
     '#description' => t("Choose the fields that will appear in the pager."),
     '#prefix' => '<div id="' . $dependency . '-views-slideshow-jcarousel-pager-fields-wrapper">',
     '#suffix' => '</div>',
-    '#process' => array(
-      'expand_checkboxes',
-      'views_process_dependency',
-    ),
+//    '#process' => array(
+//      'expand_checkboxes',
+//      'views_process_dependency',
+//    ),
     '#dependency_count' => 2,
     '#dependency' => array(
       $dependency . '-enable' => array(1),
       $dependency . '-type' => array('views_slideshow_jcarousel_pager'),
-    )
+    ),
   );
 
   // Add field to see if they would like the carousel to activate the pager item
@@ -133,9 +140,9 @@ function views_slideshow_jcarousel_pager_views_slideshow_widget_pager_form_optio
     '#description' => t('When the slide changes move the carousel to the active pager item.'),
     '#prefix' => '<div id="' . $dependency . '-views-slideshow-jcarousel-pager-move-on-change">',
     '#suffix' => '</div>',
-    '#process' => array(
-      'views_process_dependency',
-    ),
+//    '#process' => array(
+//      'views_process_dependency',
+//    ),
     '#dependency_count' => 2,
     '#dependency' => array(
       $dependency . '-enable' => array(1),
@@ -160,9 +167,9 @@ function views_slideshow_jcarousel_pager_views_slideshow_widget_pager_form_optio
     '#description' => t('Choose the skin for your carousel.  You can add more by placing your skin in the jcarousel library directory.'),
     '#prefix' => '<div id="' . $dependency . '-views-slideshow-jcarousel-pager-skin">',
     '#suffix' => '</div>',
-    '#process' => array(
-      'views_process_dependency',
-    ),
+//    '#process' => array(
+//      'views_process_dependency',
+//    ),
     '#dependency_count' => 2,
     '#dependency' => array(
       $dependency . '-enable' => array(1),
@@ -174,14 +181,17 @@ function views_slideshow_jcarousel_pager_views_slideshow_widget_pager_form_optio
   $form['views_slideshow_jcarousel_pager_orientation'] = array(
     '#type' => 'select',
     '#title' => t('Orientation of the Pager'),
-    '#options' => array(FALSE => 'Horizontal', TRUE => 'Vertical'),
+    '#options' => array(
+      FALSE => 'Horizontal',
+      TRUE => 'Vertical',
+    ),
     '#default_value' => $defaults['views_slideshow_jcarousel_pager_orientation'],
     '#description' => t('Should the pager be horizontal or vertical.'),
     '#prefix' => '<div id="' . $dependency . '-views-slideshow-jcarousel-pager-orientation">',
     '#suffix' => '</div>',
-    '#process' => array(
-      'views_process_dependency',
-    ),
+//    '#process' => array(
+//      'views_process_dependency',
+//    ),
     '#dependency_count' => 2,
     '#dependency' => array(
       $dependency . '-enable' => array(1),
@@ -198,9 +208,9 @@ function views_slideshow_jcarousel_pager_views_slideshow_widget_pager_form_optio
     '#size' => 10,
     '#prefix' => '<div id="' . $dependency . '-views-slideshow-jcarousel-pager-visible">',
     '#suffix' => '</div>',
-    '#process' => array(
-      'views_process_dependency',
-    ),
+//    '#process' => array(
+//      'views_process_dependency',
+//    ),
     '#dependency_count' => 2,
     '#dependency' => array(
       $dependency . '-enable' => array(1),
@@ -217,9 +227,9 @@ function views_slideshow_jcarousel_pager_views_slideshow_widget_pager_form_optio
     '#size' => 10,
     '#prefix' => '<div id="' . $dependency . '-views-slideshow-jcarousel-pager-scroll">',
     '#suffix' => '</div>',
-    '#process' => array(
-      'views_process_dependency',
-    ),
+//    '#process' => array(
+//      'views_process_dependency',
+//    ),
     '#dependency_count' => 2,
     '#dependency' => array(
       $dependency . '-enable' => array(1),
@@ -236,9 +246,9 @@ function views_slideshow_jcarousel_pager_views_slideshow_widget_pager_form_optio
     '#size' => '10',
     '#prefix' => '<div id="' . $dependency . '-views-slideshow-jcarousel-pager-animation">',
     '#suffix' => '</div>',
-    '#process' => array(
-      'views_process_dependency',
-    ),
+//    '#process' => array(
+//      'views_process_dependency',
+//    ),
     '#dependency_count' => 2,
     '#dependency' => array(
       $dependency . '-enable' => array(1),
@@ -250,14 +260,20 @@ function views_slideshow_jcarousel_pager_views_slideshow_widget_pager_form_optio
   $form['views_slideshow_jcarousel_pager_wrap'] = array(
     '#type' => 'select',
     '#title' => t('Wrapping'),
-    '#options' => array(NULL => 'Disabled', 'circular' => 'Circular', 'first' => 'First', 'last' => 'Last', 'both' => 'Both'),
+    '#options' => array(
+      NULL => 'Disabled',
+      'circular' => 'Circular',
+      'first' => 'First',
+      'last' => 'Last',
+      'both' => 'Both',
+    ),
     '#default_value' => $defaults['views_slideshow_jcarousel_pager_wrap'],
     '#description' => t('Wrap the carousel.'),
     '#prefix' => '<div id="' . $dependency . '-views-slideshow-jcarousel-pager-wrap">',
     '#suffix' => '</div>',
-    '#process' => array(
-      'views_process_dependency',
-    ),
+//    '#process' => array(
+//      'views_process_dependency',
+//    ),
     '#dependency_count' => 2,
     '#dependency' => array(
       $dependency . '-enable' => array(1),
@@ -275,7 +291,7 @@ function views_slideshow_jcarousel_pager_views_slideshow_widget_pager_form_optio
  */
 
 // Trying to make sure the theme.inc get's loaded.
-include_once('theme/views_slideshow_jcarousel.theme.inc');
+include_once 'theme/views_slideshow_jcarousel.theme.inc';
 
 function template_preprocess_views_slideshow_jcarousel_pager(&$vars) {
   _views_slideshow_jcarousel_preprocess_pager($vars);
