Add logging to track down bug.