Plan/DB: Replacing printf with debug.