Added DbgPrint usage if api is available