Added debug flag with debug level, above 0 will show telemetry