Refactoring. Simpler parameter names ("append_name" is now "label" and "append_index" is now "order"). Made generated resource names unique or checked first for an existing resource to avoid warning messages for cloned resources.