anchor.diff:  			end
   	end.
   
  +%% @doc
  +%% Function: parse_triggers/2
  +%% Purpose: Used to parse the triggers from
  +%%          json objects to something that can
  +%%          be used to start the trigger processes
  +%% Returns: a list of trigger attributes, where all
  +%%          attributes for a trigger is in a tuple
  +%% @end
  +-spec parse_triggers(TriggerList::list(),Accumelator::list()) -> list().
  +
   parse_triggers([],Acc) ->
   	Acc;
   parse_triggers([{Id,Trigger}|Rest],Acc) ->
  
positive.code: 	Output = lists:map(fun(A) -> {list_to_atom(lib_json:to_string(lib_json:get_field(A, "output_type"))),lib_json:to_string(lib_json:get_field(A, "output_id"))} end, lib_json:get_field(First, "output")),
  	NewElement = {Input,Output},
  	parse_outputlist(Rest,[NewElement|Acc]).
  
  start_processes([]) ->
  	ok;
  
negative.code: 			false
  	end.
  
  
  %% @doc
  %% Function: start_all_triggers_in_es/0
  %% Purpose: Used to start all triggers in ES
  %%          when the function is called
  %% Returns: ok if it managed to start everything
  %%          otherwise error
  %% @end
  -spec start_all_triggers_in_es() -> ok | error.
  
  start_all_triggers_in_es() ->
  	AmountQuery = "{\"query\" : {\"match_all\" : {}}}",
  	case erlastic_search:search_json(#erls_params{},?INDEX, "trigger", AmountQuery) of % Maybe wanna take more
  