Add debug statements to help troubleshooting.

To remove later.