Added debugging for weeding out bugs causing failures.