anchor.diff:  handle_cast(_Msg, State) ->
     {noreply, State}.
   
  +%@doc Periodically reports the number of connected users to Co-Pilot monitor
  +handle_info(connected_users_interval, State) ->
  +  Opts = proplists:get_value(opts, State),
  +  Host = proplists:get_value(host, Opts),
  +  Sessions = erlang:length(ejabberd_sm:dirty_get_sessions_list()),
  +  ?DEBUG("Reporting number of connected machines to Co-Pilot Monitor (~p)", [Sessions]),
  +  report_event(Host, "connected", integer_to_list(Sessions), "value"),
  +  {noreply, State};
   handle_info(_Info, State) ->
     {noreply, State}.
   
  
positive.code: handle_presence(UserState, {_User, Host, _Resource} = JID, IPAddress) ->
    % Processes the stanza in the gen_server
    gen_server:cast(?MODULE, {UserState, JID, IPAddress}),
    report_event(Host, atom_to_list(UserState)),
    ok.
  
  %%% gen_server %%%
  
negative.code: -behaviour(gen_server).
  
  -define(JID, "mod_copilot@localhost").
  -define(REPORT_INTERVAL, 60000).
  
  -include("ejabberd.hrl").
  -include("jlib.hrl").
  