diff --git a/SMPBasicBlock.cpp b/SMPBasicBlock.cpp
index b6bea4fcf82b6be0e1afd0b9d0a8732a8025da52..003f27ac7a4272bcf72ad500cec28938858004bc 100644
--- a/SMPBasicBlock.cpp
+++ b/SMPBasicBlock.cpp
@@ -825,7 +825,7 @@ bool SMPBasicBlock::PropagateGlobalDefType(op_t DefOp, SMPOperandType DefType, i
 	bool FoundPhiDef = false;
 	bool DebugFlag = false;
 #if SMP_DEBUG_OPTIMIZATIONS
-	DebugFlag |= (0 == strcmp("memset", this->MyFunc->GetFuncName()));
+	DebugFlag |= (0 == strcmp("refresh_potential", this->MyFunc->GetFuncName()));
 #endif
 	list<list<SMPInstr>::iterator>::iterator InstIter;
 	set<DefOrUse, LessDefUse>::iterator CurrUse;
@@ -859,9 +859,11 @@ bool SMPBasicBlock::PropagateGlobalDefType(op_t DefOp, SMPOperandType DefType, i
 			for (PhiIndex = 0; PhiIndex < CurrPhi->GetPhiListSize(); ++PhiIndex) {
 				if (SSANum == CurrPhi->GetUseSSANum(PhiIndex))  {
 					FoundUse = true;
+					if (DebugFlag) msg("Found the phi USE at index %d\n", PhiIndex);
 					if (UNINIT == CurrPhi->GetUseType(PhiIndex)) {
 						changed = this->SetPhiUseType(DefOp, PhiIndex, DefType);
 						assert(changed);
+						if (DebugFlag) msg("Changed the phi USE type\n");
 					}
 					break;
 				}
diff --git a/SMPProgram.cpp b/SMPProgram.cpp
index 12762d83505eb0b0ea84fa493551b880041d4566..5581868b7c48587393b09ba602ed7395804add63 100644
--- a/SMPProgram.cpp
+++ b/SMPProgram.cpp
@@ -301,7 +301,7 @@ void SMPProgram::Analyze(void) {
 				pair<ea_t, SMPFunction *> TempFunc(FuncInfo->startEA, CurrFunc);
 				this->FuncMap.insert(TempFunc);
 				CurrFunc->Analyze();
-				if (0 == strcmp("weightadj", CurrFunc->GetFuncName())) {
+				if (0 == strcmp("refresh_potential", CurrFunc->GetFuncName())) {
 					DebugFlag = true;
 				}
 #if SMP_INFER_TYPES