function CEL_ExpressionUpdated(Source, EventID, cqg_expression, index_, varargin)

global m_CEL;
global m_UpdatesCount;

try
    % Informing about record update and recalculating correlation.
    disp ' ';
    disp([m_CEL.Environment.LineTime '. ' 'Record #', num2str(index_) '  updated.' ]);
    SyncAndCalcCorr(cqg_expression);
    
    m_UpdatesCount = m_UpdatesCount + 1;
catch
    CEL_ShutDown;
    disp('An error occurred in CEL_ExpressionUpdated.m file.');
end