Add some debugging to try to track down a problem.