Added debugging output. Issue #46.