diff --git rules_admin/rules_admin.inc rules_admin/rules_admin.inc
index e0afa1c..25e4e8c 100644
--- rules_admin/rules_admin.inc
+++ rules_admin/rules_admin.inc
@@ -219,6 +219,16 @@ function rules_admin_get_categories($item_type) {
 }
 
 /**
+ * Gets an unique name for a newly added rule.
+ */
+function _rules_admin_rule_get_new_unique_name() {
+  $id = variable_get('rules_counter', 0);
+  $id++;
+  variable_set('rules_counter', $id);
+  return 'rules_'. $id;
+}
+
+/**
  * Gets the label for the info of the given element by apply label callbacks.
  * Note that this is also used for argument infos.
  *
@@ -380,4 +390,4 @@ function rules_admin_add_crumbs($crumbs) {
 
 function rules_admin_is_event_rule($rule) {
   return !empty($rule['#set']) && strpos($rule['#set'], 'event_') === 0;
-}
\ No newline at end of file
+}
