Issue #125. Added debug statements.