anchor.diff:    end;
   
   handle_cast({log_load, StartTime, PrevTime}, State) ->
  -  spawn(?MODULE, log_load, [self(), State#node_state.load_logging_fd, StartTime, PrevTime]),
  +  {ok, Interval} = application:get_env(?APP_Name, node_load_logging_period),
  +  {MegaSecs, Secs, MicroSecs} = erlang:now(),
  +  CurrTime = MegaSecs * 1000000 + Secs + MicroSecs / 1000000,
  +  spawn(?MODULE, log_load, [State#node_state.load_logging_fd, StartTime, PrevTime, CurrTime]),
  +  erlang:send_after(Interval * 1000, self(), {timer, {log_load, StartTime, CurrTime}}),
     {noreply, State};
   
   handle_cast(stop_load_logging, State) ->
  
positive.code:         Value end, NodeStats)],
        Format = string:join(lists:duplicate(length(Values), "~.6f"), ", ") ++ "\n",
        io:fwrite(Fd, Format, Values),
        erlang:send_after(Interval * 1000, Pid, {timer, {log_load, StartTime, CurrTime}}),
        ok
    end.
  
  
negative.code: %% log_load/4
  %% ====================================================================
  %% @doc Writes node load to file
  -spec log_load(Fd :: pid(), StartTime :: integer(), PrevTime :: integer(), CurrTime :: integer()) -> Result when
    Result :: ok.
  %% ====================================================================
  log_load(Fd, StartTime, PrevTime, CurrTime) ->
    case Fd of
      undefined -> ok;
      _ ->
  