Updated code to run simulations with correlation induced by setting seed