anchor.diff:              schedule_impression()
       end,
   
  -    {noreply, State#state{impressions=Impressions1}};
  +    {noreply, State#state{impressions=Impressions1, triggers=Triggers1}};
   
   handle_info(check_simulation_end, #state{actor=Actor}=State) ->
       %% A simulation ends for clients when all clients have
  
positive.code: 
      {noreply, State};
  
  handle_info(view, #state{actor=Actor, impressions=Impressions0}=State) ->
      %% Get current value of the list of advertisements.
      {ok, Ads} = lasp:query(?ADS_WITH_CONTRACTS),
  
      %% Make sure we have ads...
      Impressions1 = case sets:size(Ads) of
          0 ->
              %% Do nothing.
              Impressions0;
          Size ->
              %% Select random.
              Random = lasp_support:puniform(Size),
  
negative.code: -include("lasp.hrl").
  
  %% State record.
  -record(state, {actor, impressions, triggers}).
  
  %%%===================================================================
  %%% API
  