Add some diagnostic outputs to the CCA implementation.