Adds debugging printout.

Work in progress.