Add debug logging option