Added flags for verbose logging