XP Problem Solved

Add debug code