Added debug printing to try to find null exception error