Add debug tool for positioning phase