Add debug logging #5