RcppProgress customized