Added missing variables in analyze_temp_array