Revert "Debug code deleted"

This reverts commit 1cf5624e8b1570d88e54e02011bca1361e3cd556.
Revert "Revert "Debug code deleted""

This reverts commit 8920c54592704f4baad9e8dbe1419759af2c633e.