Add a debug message and tweak another one.
Fix missing profile.name declaration.