diff --git a/force_tfa.info b/force_tfa.info
index ee930e1..552a55f 100644
--- a/force_tfa.info
+++ b/force_tfa.info
@@ -1,7 +1,6 @@
 name = Force TFA
-description = Module requires selected roles to be forced into enrolling in TFA (two factor auth). if user is in the role and has not setup TFA, the are redirected to the TFA security page with no other options.
+description = Module requires selected roles to be forced into enrolling in TFA (two factor auth). If user is in the role and has not setup TFA, the are redirected to the TFA security page with no other options.
 core = 7.x
-package = AAA
 configure = admin/config/system/force-tfa
 dependencies[] = tfa
-dependencies[] = tfa_basic
\ No newline at end of file
+dependencies[] = tfa_basic
diff --git a/force_tfa.module b/force_tfa.module
index 6809946..5486d0a 100644
--- a/force_tfa.module
+++ b/force_tfa.module
@@ -1,120 +1,121 @@
 <?php
-
+
   /**
    * Implements hook_menu().
    */
   function force_tfa_menu(){
-  	$items['admin/config/system/force-tfa'] = array(
-        'title' => 'Force TFA settings',
+    $items['admin/config/people/force-tfa'] = [
+      'title' => 'Force TFA settings',
   		'description' => 'Configure the settings for the Force TFA module',
   		'page callback' => 'drupal_get_form',
-  		'page arguments' => array('force_tfa_adminform'),
-  		'access arguments' => array('admin tfa settings'),
+      'page arguments' => ['force_tfa_adminform'],
+      'access arguments' => ['admin tfa settings'],
   		'type' => MENU_NORMAL_ITEM,
-  	);
+    ];
    	return $items;
   }
-
+
   function force_tfa_page_alter(){
-	  //dsm(current_path());
-
+    if (variable_get('tfa_enabled', FALSE) == FALSE) {
+      return;
+    }
+
 	  global $user;
 	  $user_tfa = tfa_basic_get_tfa_data($user);
-
-	  if(!empty(_force_tfa_visibility_pages())){
-  	  $page_force=FALSE;
-	  }else{
-  	  $page_force=TRUE;
+
+	  if (!empty(_force_tfa_visibility_pages())) {
+      $page_force = FALSE;
+	  } else {
+      $page_force = TRUE;
 	  }
-
-	  if(!empty(_force_tfa_visibility_roles($user))){
-  	  $role_force=TRUE;
-	  }else{
-  	  $role_force=FALSE;
+
+	  if (!empty(_force_tfa_visibility_roles($user))) {
+      $role_force = TRUE;
+	  } else {
+      $role_force = FALSE;
 	  }
-
-	  if(isset($user_tfa['status']) && $user_tfa['status']){
-  	  $tfa_force=FALSE;
-	  }else{
+
+	  if (isset($user_tfa['status']) && $user_tfa['status']) {
+      $tfa_force = FALSE;
+	  } else {
   	  $tfa_force=true;
 	  }
-
-	  if( $page_force && $role_force && $tfa_force){
+
+	  if ($page_force && $role_force && $tfa_force) {
   	  drupal_set_message("You must set up Two Factor Authentication for access to this site!");
   	  drupal_goto('user/'.$user->uid.'/security/tfa');
 	  }
-
+
   }
-
+
   /**
    * admin settings
    */
   function force_tfa_adminform($form, &$form_state){
     $role_options = array_map('check_plain', user_roles(TRUE));
-  	$form['force_tfa_roles'] = array(
-  		'#type' => 'checkboxes',
-  		'#title' => t('Force TFA on the following roles'),
-  		'#default_value' => variable_get('force_tfa_roles', array()),
-  		'#options' => $role_options,
-  		'#description' => t('The above roles will be forced to the TFA setup page after login.'),
-  	);
-
-  	$form['force_tfa_pages'] = array(
-  		'#type' => 'textarea',
-  		'#title' => t('Allow access to the following paths'),
-  		'#default_value' => variable_get('force_tfa_pages'),
-  		'#description' => t('The above pages are the only pages this role will be permitted to see without setting up TFA.'),
-  	);
-
+    $form['force_tfa_roles'] = [
+      '#type' => 'checkboxes',
+      '#title' => t('Force TFA on the following roles'),
+      '#default_value' => variable_get('force_tfa_roles'),
+      '#options' => $role_options,
+      '#description' => t('The above roles will be forced to the TFA setup page after login.'),
+    ];
+
+    $form['force_tfa_pages'] = [
+      '#type' => 'textarea',
+      '#title' => t('Allow access to the following paths'),
+      '#default_value' => variable_get('force_tfa_pages', ['user/*/security/tfa']),
+      '#description' => t('The above pages are the only pages this role will be permitted to see without setting up TFA.'),
+    ];
+
   	return system_settings_form($form);
   }
-
-
+
   /**
-   * Based on visibility setting this function returns TRUE if FORCE FTA  should
+   * Based on visibility setting this function returns TRUE if force_tfa should
    * allow this page and otherwise FALSE.
    */
   function _force_tfa_visibility_pages() {
-    static $force_fta_page_match;
-
+    static $force_tfa_page_match;
+
     // Cache visibility result if function is called more than once.
     if (!isset($page_match)) {
-
-      $setting_pages = variable_get('force_tfa_pages', AAA_SCRIPTSERVER_PAGES);
-
+
+      $setting_pages = variable_get('force_tfa_pages', "user/*\r\nuser/*/security/tfa");
+
       // Match path if necessary.
       if (!empty($setting_pages)) {
         // Convert path to lowercase. This allows comparison of the same path
         // with different case. Ex: /Page, /page, /PAGE.
         $pages = drupal_strtolower($setting_pages);
-
+
         // Convert the Drupal path to lowercase
         $path = drupal_strtolower(drupal_get_path_alias($_GET['q']));
-
+
         // Compare the lowercase internal and lowercase path alias (if any).
-        $force_fta_page_match = drupal_match_path($path, $pages);
+        $force_tfa_page_match = drupal_match_path($path, $pages);
         if ($path != $_GET['q']) {
-          $force_fta_page_match = $force_fta_page_match || drupal_match_path($_GET['q'], $pages);
+          $force_tfa_page_match = $force_tfa_page_match || drupal_match_path($_GET['q'], $pages);
         }
-
+
       }
       else {
-        $force_fta_page_match = TRUE;
+        $force_tfa_page_match = TRUE;
       }
-
+
     }
-    return $force_fta_page_match;
+    return $force_tfa_page_match;
   }

-
   /**
-  * Based on visibility setting this function returns TRUE if force FTA code should
+  * Based on visibility setting this function returns TRUE if force_tfa code should
   * be added for the current role and otherwise FALSE.
   */
   function _force_tfa_visibility_roles($account) {
-
-    $roles = variable_get('force_tfa_roles', array());
-
+    $enabled = FALSE;
+
+    $roles = variable_get('force_tfa_roles', []);
+
     if (array_sum($roles) > 0) {
       // One or more roles are selected.
       foreach (array_keys($account->roles) as $rid) {
@@ -130,9 +131,6 @@
       // No role is selected for tracking, therefore all roles should be tracked.
       $enabled = TRUE;
     }
-
+
     return $enabled;
   }
-
-
-
