Changes for embedding rapstats on rg