Adding debugging output to fix an issue