function CEL_ExpressionResolved(Source, EventID, cqg_expression, cqg_error, varargin)

global m_CEL;

global m_Symbol1;
global m_Symbol2;

global m_UpdatesCount;

try
    m_UpdatesCount = m_UpdatesCount + 1;
    
    % Informing about expression resolving and calculating correlation.
    disp ' ';
    disp(['Expression resolved at ' m_CEL.Environment.LineTime '.']);
    disp(['Calculating correlation between "' m_Symbol1 '" and "' m_Symbol2 '":']);
    SyncAndCalcCorr(cqg_expression);
catch
    CEL_ShutDown;
    disp('An error occurred in CEL_ExpressionResolved.m file.');
end