Added debug message to fix bug.