Added kDebugLevel variable to control output size on demand