def METHOD_NAME(self, action_string, args_dict=None, thread=True):
    """Execute function action."""
    if args_dict is None:
        args_dict = {}
    try:
        run_command = getattr(self.run_function, action_string)
        if thread:
            thread_run_command = threading.Thread(
                target=run_command,
                args=(args_dict,))
            thread_run_command.start()
            return 0, "Command sent to Function Controller and is running in the background."
        else:
            return_val = run_command(args_dict)
            return 0, ["Command sent to Function Controller.", return_val]
    except:
        self.logger.exception(f"Error executing function action '{action_string}'")