Added log outputs for diagnosing #9