anchor.diff:      proc_lib:init_ack(Parent, {ok, self()}),
       ets:insert(amoc_users, {Id, self()}),
       process_flag(trap_exit, true),
  -    F = fun() -> perform_scenario(Scenario, Id, State) end,
       R = try
  -            case repeat_num() of
  -                infinity -> repeat(F);
  -                N -> repeat(F, N)
  -            end,
  +            perform_scenario(Scenario, Id, State),
               normal
           catch
               throw:normal_user_stop ->
  
positive.code: %% Licensed under the Apache License, Version 2.0 (see LICENSE file)
  %%==============================================================================
  -module(amoc_user).
  
  %% defaults
  -define(REPEAT_INTERVAL, 60000). % time between user restarts (60s)
  -define(REPEAT_NUM, infinity). % number of scenario repetitions
  
  %% API
  -export([start_link/3]).
  
negative.code:             Scenario:start(Id, State);
          false ->
              Scenario:start(Id)
      end.