Add debug mode for verbose logging