diff --git a/defaultconfig.module b/defaultconfig.module
index 649fed0..ee7fde2 100644
--- a/defaultconfig.module
+++ b/defaultconfig.module
@@ -244,9 +244,26 @@ function defaultconfig_theme() {
 }
 
 /**
- * Implements hook_modules_installed().
+ * Implements hook_module_implements_alter()
  */
-function defaultconfig_modules_installed($modules) {
+function defaultconfig_module_implements_alter(&$implementations, $hook) {
+  if ($hook == 'modules_enabled') {
+    $group = $implementations['defaultconfig'];
+    unset($implementations['defaultconfig']);
+    $implementations['defaultconfig'] = $group;
+  }
+}
+
+/**
+ * Implements hook_modules_enabled().
+ */
+function defaultconfig_modules_enabled($modules) {
+  // Allow distributions to disable this behavior and rebuild the features
+  // manually inside a batch.
+  if (!variable_get('features_rebuild_on_module_install', TRUE)) {
+    return;
+  }
+
   // We might not be able to install components while installing, so provide an option to disable
   // this functionality during installation.
   if (is_array($GLOBALS['install_state'])) {
