anchor.diff:              throw(Reason)
       end.
   
  --ifndef(SIMULATION).
  -loop(Module, State, {Options, Slowest} = _ComponentState) ->
  -    receive
  -        {'$gen_compnent', sleep , Time} ->
  +loop(Module, On, State, {Options, Slowest} = ComponentState) ->
  +    receive
  +        {'$gen_component', sleep , Time} ->
               timer:sleep(Time),
  -            loop(Module, State, _ComponentState);
  -        {'$gen_compnent', kill} ->
  +            loop(Module, On, State, ComponentState);
  +        {'$gen_component', kill} ->
               ok;
           % handle failure detector messages
           {ping, Pid, Cookie} ->
               cs_send:send(Pid, {pong, Cookie}),
  -            loop(Module, State, _ComponentState);
  +            loop(Module, On, State, ComponentState);
           %% forward a message to group member by its process name
           %% initiated via cs_send:send_to_group_member()
           {send_to_group_member, Processname, Msg} ->
  
positive.code:             end
      end,
      try
          InitialState = Module:init(Args),
          loop(Module, InitialState, {Options, 0.0})
      catch
          throw:Term ->
              log:log(error,"exception in init/loop of ~p: ~p~n", [Module, Term]),
  
negative.code: 
  -export([behaviour_info/1]).
  
  -export([start_link/2, start_link/3, start/4, start/2, start/3,wait_for_ok/0,
           change_handler/2]).
  
  -export([kill/1, sleep/2]).
  
  