Altered debug output to help detect error