Add debug logging statements