anchor.diff:                      true ->
                           1
                   end,
  -    {next_state, executing, State#state{lead_partner=Lead, partners=Partners, done_count=DoneCount}, Timeout};
  +    {next_state, executing, State#state{lead_partner=Lead, partners=Partners, done_count=DoneCount}};
   executing({partners, _, _}, State) ->
       {stop, {error, no_convergence}, State};
  -executing({inputs, Input}, #state{mod=PhaseMod, modstate=ModState, timeout=Timeout}=State) ->
  +executing({inputs, Input}, #state{mod=PhaseMod, modstate=ModState, flow_timeout=Timeout}=State) ->
       handle_callback(PhaseMod:handle_input(Input, ModState, Timeout), State);
   executing(inputs_done, #state{mod=PhaseMod, modstate=ModState, done_count=DoneCount0}=State) ->
       case DoneCount0 - 1 of
  
positive.code:             luke_phases:send_inputs_done(Next)
      end,
      {stop, normal, State};
  executing(timeout, #state{cb_timeout=true, mod=Mod, modstate=ModState}=State) ->
      handle_callback(Mod:handle_timeout(ModState), State#state{cb_timeout=false});
  executing(timeout, #state{cb_timeout=false}=State) ->
      {stop, normal, State};
  executing(Event, #state{mod=PhaseMod, modstate=ModState}=State) ->
      handle_callback(PhaseMod:handle_event(Event, ModState), State).
  
  handle_event(_Event, StateName, #state{timeout=Timeout}=State) ->
      {next_state, StateName, State, Timeout}.
  
  handle_sync_event(_Event, _From, StateName, #state{timeout=Timeout}=State) ->
      {reply, ignored, StateName, State, Timeout}.
  handle_info(timeout, executing, #state{cb_timeout=true, mod=Mod, modstate=ModState}=State) ->
      handle_callback(Mod:handle_timeout(ModState), State#state{cb_timeout=false});
  handle_info(timeout, executing, #state{flow=Flow}=State) ->
      luke_phases:send_flow_results(Flow, {error, timeout}),
      luke_phases:send_flow_complete(Flow),
      {stop, normal, State};
  handle_info(Info, _StateName, #state{mod=PhaseMod, modstate=ModState}=State) ->
      handle_callback(PhaseMod:handle_info(Info, ModState), State).
  
  
negative.code: 
  %% Internal functions
  %% Handle callback module return values
  handle_callback({no_output, NewModState}, State) ->
      {next_state, executing, State#state{modstate=NewModState}};
  handle_callback({no_output, NewModState, PhaseTimeout}, #state{flow_timeout=Timeout}=State) when PhaseTimeout < Timeout ->
      {next_state, executing, State#state{modstate=NewModState}, PhaseTimeout};
  handle_callback({output, Output, NewModState}, State) ->
      State1 = route_output(Output, State),
      {next_state, executing, State1#state{modstate=NewModState}};
  handle_callback({output, Output, NewModState, PhaseTimeout}, #state{flow_timeout=Timeout}=State) when PhaseTimeout < Timeout ->
      State1 = route_output(Output, State),
      {next_state, executing, State1#state{modstate=NewModState}, PhaseTimeout};
  handle_callback({stop, Reason, NewModState}, State) ->
      {stop, Reason, State#state{modstate=NewModState}};
  handle_callback(BadValue, _State) ->
  