Added debug printouts for tracking down error that only shows up on jenkins builds.