anchor.diff:  -export([init/1]).
   
   -define(SERVER, ?MODULE).
  +
  +%% Helper macro for declaring children of supervisor
  +-define(CHILD(I, Name, Index, Type), {Name, {I, start_link, [Index]}, permanent, 5000, Type, [I]}).
   
   %%%===================================================================
   %%% API functions
  
positive.code: 
  -behaviour(supervisor).
  
  %% API
  -export([start_link/0]).
  
  
negative.code: 
      SupFlags = {RestartStrategy, MaxRestarts, MaxSecondsBetweenRestarts},
  
      {ok, DdbConfig} = application:get_env(?CORE_APPLICATION_NAME, ddbconfig),
      NumWorkers = length(proplists:get_value(buckets, DdbConfig)),
      Specs = [?CHILD(ddb2pgidx_server, proplists:get_value(name, lists:nth(Index, proplists:get_value(buckets, DdbConfig))), Index, worker) || Index <- lists:seq(1, NumWorkers)],
      {ok, { SupFlags, Specs} }.
  
  %%%===================================================================
  %%% Internal functions
  