analyze_variables function

Analyze variables