def copy
    copy = self.clone #Currently, we overwrite everything anyway, but we may add some clonable attributes later.
    #Make a deep copy of all actions.
    copy.instance_eval {@actions = []}
    self.actions.each {|action| copy.add_action(action.copy)}
    #Make a deep copy of all conditions.
    copy.instance_eval {@conditions = []}
    self.conditions.each {|condition| copy.add_condition(condition.copy)}
    copy
  end
def copy
    copy = self.clone #Currently, we overwrite everything anyway, but we may add some clonable attributes later.
    #Make a deep copy of all actions.
    copy.instance_eval {@actions = []}
    self.actions.each {|action| copy.add_action(action.copy)}
    #Make a deep copy of all conditions.
    copy.instance_eval {@conditions = []}
    self.conditions.each {|condition| copy.add_condition(condition.copy)}
    copy
  end
Make a deep copy.