Add debugging output on intermediate results.