diff --git a/relation.info b/relation.info
index ae00f05..358ea06 100644
--- a/relation.info
+++ b/relation.info
@@ -9,4 +9,4 @@ files[] = tests/relation.views.test
 files[] = views/relation_handler_relationship.inc
 configure = admin/structure/relation
 dependencies[] = relation_endpoint
-dependencies[] = ctools (!=7.x-1.0-rc1)
+;dependencies[] = ctools (!=7.x-1.0-rc1)
diff --git a/relation.install b/relation.install
index dba4da6..afeb2c9 100644
--- a/relation.install
+++ b/relation.install
@@ -130,7 +130,7 @@ function relation_schema() {
   );
   $schema['relation_type'] = array(
     'description' => 'Relation settings.',
-    // Add exportability using ctools.
+    // Add exportability when using ctools.
     'export' => array(
       'key' => 'relation_type',
       'identifier' => 'relation_type',
@@ -256,7 +256,7 @@ function relation_uninstall() {
  * Enable the new endpoint module and ctools.
  */
 function relation_update_7001() {
-  module_enable(array('relation_endpoint', 'ctools'));
+  module_enable(array('relation_endpoint'));
   db_update('field_config')
     ->fields(array('module' => 'relation_endpoint'))
     ->condition('field_name', 'endpoints')
diff --git a/relation.module b/relation.module
index 32310fd..5cd12bc 100644
--- a/relation.module
+++ b/relation.module
@@ -1,7 +1,9 @@
 <?php
 
 require_once dirname(__FILE__) . '/relation.rules.inc';
-require_once dirname(__FILE__) . '/relation.ctools.inc';
+if (module_exists('ctools')) {
+  require_once dirname(__FILE__) . '/relation.ctools.inc';
+}
 
 /**
  * @file
@@ -266,15 +268,17 @@ function relation_menu() {
     'file' => 'relation.admin.inc',
     'weight' => 20,
   );
-  $items['admin/structure/relation/manage/%relation_type/export'] = array(
-    'title' => 'Export',
-    'page callback' => 'drupal_get_form',
-    'page arguments' => array('relation_export_relation_type', 4),
-    'access arguments' => array('export relation types'),
-    'type' => MENU_LOCAL_TASK,
-    'file' => 'relation.ctools.inc',
-    'weight' => 10,
-  );
+  if (module_exists('ctools')) {
+    $items['admin/structure/relation/manage/%relation_type/export'] = array(
+      'title' => 'Export',
+      'page callback' => 'drupal_get_form',
+      'page arguments' => array('relation_export_relation_type', 4),
+      'access arguments' => array('export relation types'),
+      'type' => MENU_LOCAL_TASK,
+      'file' => 'relation.ctools.inc',
+      'weight' => 10,
+    );
+  }
   $items['admin/config/development/generate/relation'] = array(
     'title' => 'Generate relations',
     'access arguments' => array('administer relation types'),
@@ -439,19 +443,34 @@ function relation_type_load($relation_type) {
  *   relation_type_save(), keyed by relation_type.
  */
 function relation_get_types($types = array()) {
-  ctools_include('export');
-  $return = $types ? ctools_export_crud_load_multiple('relation_type', $types) : ctools_export_crud_load_all('relation_type');
-  static $recurse = FALSE;
-  if (!$recurse) {
-    $recurse = TRUE;
-    foreach ($return as $type => $data) {
-      if (!empty($data->in_code_only)) {
-        relation_type_ensure_instance($type);
+  if (module_exists('ctools')) {
+    ctools_include('export');
+    $relation_types = $types ? ctools_export_crud_load_multiple('relation_type', $types) : ctools_export_crud_load_all('relation_type');
+    static $recurse = FALSE;
+    if (!$recurse) {
+      $recurse = TRUE;
+      foreach ($return as $type => $data) {
+        if (!empty($data->in_code_only)) {
+          relation_type_ensure_instance($type);
+        }
       }
     }
     $recurse = FALSE;
   }
-  return $return;
+  else {
+    $query = db_select('relation_type', 'rt')
+      ->fields('rt', array('relation_type', 'label', 'reverse_label', 'directional', 'transitive', 'r_unique', 'min_arity', 'max_arity'));
+    if ($types) {
+      $query->condition('relation_type', $types);
+    }
+    $results = $query->execute();
+    $relation_types = array();
+    foreach ($results as $relation_type) {
+      $relation_types[$relation_type->relation_type] = $relation_type;
+    }
+    _relation_get_types_bundles($relation_types);
+  }
+  return $relation_types;
 }
 
 /**
