Move loading of packages and functions from run_sims() to main.R. This way the loading is not run every time run_sims() is called.