anchor.diff:                  {ok, Pid} ->
                       {ok, Pid};
                   Error ->
  -                    Error
  +                    {error, Error}
               end;
           Error ->
  -            Error
  +            {error, Error}
       end.
   
   %%--------------------------------------------------------------------
  
positive.code: %%--------------------------------------------------------------------
  process_plans([]) ->
      ok;
  process_plans(Plans) ->
      [{Plan} | OtherPlans]   = Plans,
      Name                    = proplists:get_value(<<"name">>, Plan),
      Tree                    = proplists:get_value(<<"tree">>, Plan),
    
      [{table_keys, OldKeys}] = ets:lookup(plans, table_keys),
      NewKeys = [Name | OldKeys],
      ets:insert(plans, {table_keys, NewKeys}),
      ets:insert(plans, {Name, Tree}),
      process_plans(OtherPlans).
  
  %%--------------------------------------------------------------------
  %% @private
  
negative.code: %%--------------------------------------------------------------------
  loadConfigTable()->
      BasePath        = code:priv_dir(barrage),
      try
  
          {ok, ConfigsJ}  = file:read_file(BasePath ++ "/barrage.json"),
          {ok, PlansJ}    = file:read_file(BasePath ++ "/behaviors.json"),
          {ok, ActionsJ}  = file:read_file(BasePath ++ "/actions.json"),
          
          Configs         = jiffy:decode(ConfigsJ),
          Plans           = jiffy:decode(PlansJ),
          Actions         = jiffy:decode(ActionsJ),
          
          % Now lets set parse the plans in order to build out an ets table
          ets:new(barrage, [set, named_table]),
  
          ets:insert(barrage, {enable_general, false}),
          ets:insert(barrage, {enable_commander, false}),
          ok = process_config(Configs),
  
          ets:new(plans, [set, named_table]),
          ets:insert(plans, {table_keys, []}),
          ok = process_plans(Plans),
  
          ets:new(actions, [set, named_table]),
          process_actions(Actions)
  
      catch 
          _:_ ->
              error_data
      end.
  
  