Conditional compile some debug info, add progress bar